package com.nuumoblie.bluetoothtools.ble.db.dao;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.nuumoblie.bluetoothtools.ble.db.entity.BleAdvertiseInfo;
import com.nuumoblie.bluetoothtools.ble.db.entity.BleProductTypeEntity;

import java.util.List;
import java.util.ListIterator;

@Dao
public interface BleProductDao {

    @Insert
    void insert(BleProductTypeEntity entity);

    @Delete
    void delete(BleProductTypeEntity entity);

    @Query("select * from simulate_product_type")
    List<BleProductTypeEntity> getAllProductType();

    @Query("select * from simulate_product_type")
    LiveData<List<BleProductTypeEntity>> getAllProducts();

//    @Query("select * from ")
//    List<BleAdvertiseInfo> getAllInfos();

}
